package com.me.bean;

import java.io.Serializable;

public class ServerMessBean implements Serializable{
	private static final long serialVersionUID = 1L;
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	/**
	 * 时间
	 */
	private long time;
    /**
     * 收信人名称。。。必要时，增加马甲设置
     */
    private String name;

	/**
     * ip地址
     */
    private String host;
	/**
     * 正文消息
     */
    private String mess;

	/**
     * 指令
     */
    private String cmdMess;

	/**
     * 消息标识
     */
    private int messFlag;

	/**
     * 其他消息
     */
    private String otherMess;

	public ServerMessBean() {
		// TODO Auto-generated constructor stub
	}

	public ServerMessBean(long time, String name, String host, String mess, int messFlag,String cmdMess, 
			String otherMess) {
		super();
		this.time = time;
		this.name = name;
		this.host = host;
		this.mess = mess;
		this.messFlag = messFlag;
		this.cmdMess = cmdMess;
		this.otherMess = otherMess;
	}

	public String getCmdMess() {
		return cmdMess;
	}

	public String getHost() {
		return host;
	}

	public String getMess() {
		return mess;
	}

	public int getMessFlag() {
		return messFlag;
	}

	public String getName() {
		return name;
	}

	public String getOtherMess() {
		return otherMess;
	}

	public long getTime() {
		return time;
	}

	public void setCmdMess(String cmdMess) {
		this.cmdMess = cmdMess;
	}

	public void setHost(String host) {
		this.host = host;
	}
    public void setMess(String mess) {
		this.mess = mess;
	}
    public void setMessFlag(int messFlag) {
		this.messFlag = messFlag;
	}
    public void setName(String name) {
		this.name = name;
	}
    public void setOtherMess(String otherMess) {
		this.otherMess = otherMess;
	}

    public void setTime(long time) {
		this.time = time;
	}

	@Override
	public String toString() {
		return "ServerMessBean [name=" + name + ", host=" + host + ", mess=" + mess + ", cmdMess=" + cmdMess
				+ ", messFlag=" + messFlag + ", otherMess=" + otherMess + "]";
	}

	
    
}

